package org.zn.note.spring.dao.jdbc;

import org.springframework.data.domain.Pageable;
import org.zn.note.spring.domain.Order;
import org.zn.note.spring.domain.User;

import java.util.List;

/**
 * 订单（一个订单对应多个卷饼）
 */
public interface OrderRepository {
    Order save(Order order);

    List<Order> findByUserOrderByPlacedAtDesc(User user, Pageable pageable);
}
